package com.hko.qrip.dao.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;

import com.hko.qrip.bean.AwareAlert;
import com.hko.qrip.dao.AwareDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class AwareDaoImpl implements AwareDao {
	@Autowired
	private SqlMapClient sqlMapClient;

	@Override
	public int insertAwareAlert(AwareAlert alert) {
		try {
			return sqlMapClient.update("insertAwareAlert", alert);
		} catch (SQLException e) {
			return 0;
		}

	}

}
